<template>
  <div>
    <keep-alive v-if="multiTab">
      <BlankLayout />
    </keep-alive>
    <BlankLayout v-else />
  </div>
</template>

<script>
import { mapState } from 'vuex'

export default {
  name: 'RouteView',
  components: {
    BlankLayout: () => import('./BlankLayout')
  },
  props: {
    keepAlive: {
      type: Boolean,
      default: true
    }
  },
  data () {
    return {}
  },
  computed: {
    ...mapState({
      multiTab: state => state.app.multiTab
    }),
    meta () {
      return this.$route.meta
    }
  }
}
</script>
